package com.xidian.zhiancloud.service.equipFacility;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.metadata.OrderItem;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xidian.zhiancloud.dao.OhStandardMapper;
import com.xidian.zhiancloud.dao.OhTypeMapper;
import com.xidian.zhiancloud.model.OhStandard;
import com.xidian.zhiancloud.model.OhType;
import com.xidian.zhiancloud.qo.equipFacility.OhStandardQO;
import com.xidian.zhiancloud.qo.equipFacility.OhTypeQO;
import com.xidian.zhiancloud.vo.equipFacility.OhTypeVO;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description:检修标准
 * @Author: 任启亮
 * @Date: 2020/11/11
 */
@Service
public class OhStandardService extends ServiceImpl<OhStandardMapper, OhStandard> implements IService<OhStandard> {
    @Autowired
    private OhStandardMapper ohStandardMapper;

    public IPage<OhStandard> selectByQO(OhStandardQO ohStandardQO) {
        Page<OhStandard> page = new Page<>(ohStandardQO.getCurrent(), ohStandardQO.getSize());
        LambdaQueryWrapper<OhStandard> lambdaQueryWrapper = Wrappers.<OhStandard>lambdaQuery();
        Page<OhStandard> tmpAns = ohStandardMapper.selectPage(page, lambdaQueryWrapper);
        return tmpAns;

    }
}
